<template>
  <basic-import :columns="columns"
                :api="api"
                :templateUrl="templateUrl"
                templateName="ReceivingAddressImport" />
</template>

<script>
import BasicImport from "./BasicImport";
import { receivingAddress } from "@/api/index";
export default {
  name: "ReceivingAddressImport",
  components: { BasicImport },

  data () {
    return {
      columns: [
        {
          label: "收货方名称",
          name: "consigneeName"
        },
        {
          label: "发货方名称",
          name: "customerName"
        },
        {
          label: "收货联系人",
          name: "contactName"
        },
        {
          label: "收货联系电话",
          name: "contactMobile"
        },
        {
          label: "省/直辖市/自治区",
          name: "province"
        },
        {
          label: "市/州",
          name: "city"
        },
        {
          label: "区/县",
          name: "district"
        },
        {
          label: "详细地址",
          name: "address"
        }
      ],
      api: receivingAddress,
      templateUrl: "/excelTemplate/收货方地址导入模版.xlsx"
    };
  },
  methods: {}
};
</script>
